<template>
  <div class="content">
    <div class="from">
      <div class="from-title">{{ title }}</div>
      <el-form
        ref="loginForm"
        :model="loginForm"
        :rules="rules"
        size="small"
        status-icon
      >
        <el-form-item prop="name">
          <el-input
            class="input"
            placeholder="统一身份认证账号"
            prefix-icon="el-icon-user-solid"
            v-model="loginForm.name"
          />
        </el-form-item>
        <el-form-item prop="password">
          <el-input
            class="input"
            placeholder="密码"
            prefix-icon="el-icon-lock"
            v-model="loginForm.password"
          />
        </el-form-item>
      </el-form>
      <div class="checks">
        <el-checkbox v-model="saveInfo" label="不保存账户信息" size="large" />
        <el-checkbox
          v-model="clearInfo"
          label="清除历史授权信息"
          size="large"
        />
      </div>
      <div class="btn">
        <button @click="login">登 <span> </span>录</button>
      </div>
      <div class="serviceTel">服务电话：027-88888888</div>
    </div>
    <div class="infoList">
      <div class="title">
        <img src="../../../assets/wt.png" alt="" /> <span>常见问题</span>
      </div>
      <!-- <el-divider /> -->
      <div>
        <el-collapse v-model="activeNames">
          <el-collapse-item
            v-for="item in infoListData"
            :key="item.id"
            :title="' · ' + item.title"
            :name="item.id"
            class="list"
          >
            <div style="color: #494948">{{ item.list }}</div>
          </el-collapse-item>
        </el-collapse>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      loginForm: {
        name: '',
        password: '',
      },
      title: '统一身份认证系统',
      saveInfo: false,
      clearInfo: false,
      rules: [],
      activeNames: ['1'],
      infoListData: [
        {
          id: '1',
          title: '一致性 Consistency',
          list: '与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户',
        },
        {
          id: '2',
          title: '一致性 Consistency',
          list: '与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；',
        },
        {
          id: '3',
          title: '一致性 Consistency',
          list: '与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；',
        },
        {
          id: '4',
          title: '一致性 Consistency',
          list: '与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；',
        },
        {
          id: '5',
          title: '一致性 Consistency',
          list: '与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；',
        },
      ],
    }
  },
  components: {},
  methods: {
    login() {
      this.$message.error('暂时无法登录噢~~~')
    },
  },
}
</script>

<style lang="less" scoped>
.content {
  height: 78vh;
  background-color: #f5f7f6;
  padding-left: 18vw;
  padding-top: 6vh;
  display: flex;
  .from {
    width: 30%;
    height: 55vh;
    background-color: #fff;
    border: 1px solid #e7e5e2;
    justify-content: center;
    .from-title {
      color: #248bc1;
      padding: 50px 30px 20px;
      text-align: center;
      font-weight: 700;
    }
    /deep/ .el-form-item.el-form-item--feedback.el-form-item--small {
      margin-bottom: 6px;
    }
    .input {
      width: 80%;
      margin-left: 10%;
    }
    .checks {
      transform: scale(0.9);
      width: 80%;
      margin-left: 7%;
      display: flex;
      color: #4e4e4d;
      justify-content: space-between;
      /deep/ span.el-checkbox__inner {
        border-radius: 4px;
      }
    }
    .btn {
      display: flex;
      justify-content: center;
      margin: 30px 0 10px 0;
      button {
        width: 80%;
        height: 6.5vh;
        background-color: #005595;
        border: 0px solid transparent;
        border-radius: 3px;
        color: #fff;
        letter-spacing: 5px;
        cursor: pointer;
      }
    }
    .serviceTel {
      display: flex;
      font-size: 12px;
      justify-content: center;
      color: #5f6266;
    }
  }
  .infoList {
    width: 45%;
    max-height: 75vh;
    overflow: auto;
    padding-left: 5vw;
    font-weight: 700;
    .title {
      display: flex;
      align-items: center;
      color: #2068a0;
      font-weight: 700;
      img {
        width: 3vw;
        height: 3vw;
      }
    }
    .list {
      /deep/ .el-collapse-item__header {
        color: #090909;
      }
      /deep/ .el-collapse-item__header,
      /deep/ .el-collapse-item__content {
        font-weight: 700;
        padding-left: 10px;
        border-bottom: none;
        border-top: none;
        background-color: #f5f7f6 !important;
        div {
          // padding: 0;
          padding-left: 10px;
        }
      }
      /deep/ .el-collapse-item__arrow.el-icon-arrow-right::before {
        color: #005595;
        content: '\e78f';
      }
      /deep/ .el-collapse-item__arrow.is-active {
        transform: rotate(180deg);
      }
    }
    .list:nth-child(n) {
      border-top: 1px solid #025696;
    }
    .list:first-child {
      border-top: 2px solid #025696;
    }
    .list:last-child {
      border-bottom: 2px solid #025696;
    }
  }
}
</style>
